<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('cast/item/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('cast/item/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('cast/item/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>


                        <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('cast/item/recyclebin')?'':'hide'}" href="cast/item/recyclebin" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i> {:__('Recycle bin')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('cast/item/edit')}"
                           data-operate-del="{:$auth->check('cast/item/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">

    <form class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="post" action="">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="id" class="control-label col-xs-4">ID</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="id-operate" data-name="id" value="=" readonly="">
                        <input type="text" class="form-control" name="id" value="" placeholder="ID" id="id" data-index="1">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="name" class="control-label col-xs-4">栏目名称</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="name-operate" data-name="name" value="=" readonly="">
                        <input type="text" class="form-control" name="name" value="" placeholder="栏目名称" id="name" data-index="2">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="category_id" class="control-label col-xs-4">栏目分类</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="type-operate" data-name="category_id" value="=" readonly="">
                        {$select_string}
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="type" class="control-label col-xs-4">类别</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="type-operate" data-name="type" value="=" readonly="">
                        <select class="form-control" name="type">
                            <option value="">选择</option>
                            <option value="0">重组</option>
                            <option value="1">第三方</option>
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="image" class="control-label col-xs-4">图标</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="image-operate" data-name="image" value="=" readonly="">
                        <input type="text" class="form-control" name="image" value="" placeholder="图标" id="image" data-index="5">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="createtime" class="control-label col-xs-4">创建时间</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="createtime" value="" placeholder="创建时间" id="createtime" data-index="7">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>
